package com.heima.model.wemedia.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@TableName(value="wm_material")
@Data
public class WmMaterial {
    @TableId(value = "id",type = IdType.AUTO)
    //id
    private Long id;
    //用户id
    private Integer userId;
    //文件url
    private String url;
    //类型
    private Integer type;
    //是否收藏
    private Integer isCollection;
    //创建时间
    @TableField(value = "CREATED_TIME",fill = FieldFill.INSERT)
    private Date createdTime;
    //更新时间
    @TableField(value = "UPDATED_TIME",fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;
}
